package com.pkk.penguin.frame.know.java.Javacoreknowledge.transients;


import com.alibaba.fastjson.JSONObject;
import com.pkk.penguin.frame.know.java.Javacoreknowledge.transients.util.TransientUtil;
import com.pkk.penguin.frame.know.java.Javacoreknowledge.transients.vo.TransientVo;
import org.junit.Test;

/**
 * @description: transient的使用
 * @author: peikunkun
 * @create: 2019-12-16 14:23
 **/
public class TransientSimple {


  @Test
  public void Administrator_11_20191216150716() {
    System.out.println("欢迎使用单元测试方法【Administrator_11()_20191216150716】");
    System.out.println("此方法测试描述：【】");

    final TransientVo transientVo = new TransientVo("kunzai", "pwdStr1");
    TransientUtil.seranlizable(transientVo);
    final TransientVo transientVo1 = (TransientVo) TransientUtil.unSeranlizable();
    System.out.println(JSONObject.toJSONString(transientVo1));
    System.out.println(JSONObject.toJSONString(TransientVo.pwdStatic));
  }

}
